<!--
 * @Author: nns4
 * @Date: 2020-12-11 13:28:59
 * @LastEditors: nns4
 * @FilePath: /studyNote/vue/src/views/test/sendInfo/provideinject/grandSon.vue
 * @Description: 孙子组件
-->
<template>
    <div class="gs">
        <div class="br">
            <br>
            孙子说： <input v-model="说的话" @keyup="father.孙子说的方法(说的话)" type="text">
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                说的话: ""
            }
        },
        /* 引入父组件 */
        inject: ['father'],

    }
</script>

<style lang="less" scoped>
    .gs {
        margin: 20px;
    }

    .br {
        border: springgreen solid;
    }
</style>